#ifndef WIDGET_H
#define WIDGET_H
#include "gamewidget.h"
#include "config.h"
#include "scoreboard.h"
#include "settingwidget.h"
namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = nullptr);
    ~Widget();
    QString user_name;
    QLineEdit *playername;
    SettingWidget *setting_widget;
    GameWidget *game;
    void on_bStart_clicked();
    void on_bScoreBoard_clicked();
    void on_bQuit_clicked();
    void game_close_slot();

private:
    Ui::Widget *ui;
public slots:
    void setting_slot(int map_path,int plane_path);

};

#endif // WIDGET_H
